-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Add docs for the Mime component #10886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
913d8cf
to
9c818ad
Compare
def17b7
to
97e2b48
Compare
97e2b48
to
bd25312
Compare
This PR was squashed before being merged into the 4.3-dev branch (closes #29896). Discussion ---------- [Mime] Add the component | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #28832 #21985 makes #15460 trivial | License | MIT | Doc PR | symfony/symfony-docs#10886 This has been on my todo-list for X years :) Commits ------- bdca5d9 tweaked code 5268389 [Mime] added freedesktop as a source for mime types 74ca91d [Mime] added the component d7ee0ec [HttpFoundation] updated File code
Instead of adding comments about possible changes, I've decided to commit them. Revert totally or partially if you disagree with them. Thanks!
**Purpose**: Add a custom MIME type guesser to MimeTypes | ||
|
||
To add a custom MIME type guesser - in addition to the core guessers - create a | ||
class that implements :class:`Symfony\\Component\\Mime\\MimeTypes`, register it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it MimeTypesInterface
?
================== | ||
|
||
The MIME component provides utilities related to MIME types, such as | ||
guessing the MIME type of a given file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the scope of the component is just media types rather than MIME as a whole, could it be named as such instead?
Looks like the code was merged, can we merge this too and announce this new component? |
Closing because we've added all these contents to #11280, which documents the entire Mime component. |
docs for symfony/symfony#29896